package team.zero.lemon.module.sys.dao;

import team.zero.lemon.module.sys.entity.Role;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by bolin on 2015/5/18.
 */
@MyBatisDao
public interface IRoleDao extends ICrudDao<Role> {

    List<Role> findByUserId(int userId);
    List<Role> findByParameter(Role role);
    List<Role> findRoleTree( );
}
